<?php
/* @var $this \yii\web\View */
/* @var $content string */
use yii\helpers\Html;
use yii\bootstrap\Nav;
use yii\bootstrap\NavBar;
use yii\widgets\Breadcrumbs;
use frontend\assets\AppAsset;
use common\widgets\Alert;
use common\models\member\Member;
use common\models\notice\Notice;

AppAsset::register($this);

 $member =  Member::findOne(['id'=>\Yii::$app->user->identity->getId()]);
?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<html lang="<?= Yii::$app->language ?>">
<head>
    <meta charset="<?= Yii::$app->charset ?>">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <?= Html::csrfMetaTags() ?>
    <title><?= Html::encode($this->title) ?></title>
    <script type="text/javascript" src="<?= yii::getAlias('@web');?>/js/jquery-1.9.1.min.js"></script>
    <?php $this->head() ?>
</head>
<body>
<?php $this->beginBody() ?>
<!--warrper-->
<div class="warrper">
    <!--header-->
    <div class="header">
        <div class="w1200 clearFloat">
            <div class="xglogo floatLeft">
                <a href=""><img src="<?= yii::getAlias('@web');?>/images/xglogo.png" alt=""/></a>
            </div>
            <div class="xddl floatRight">
           <?php if( Yii::$app->user->isGuest){ ?>
                <a href="">帮助</a>&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;<a href="<?= yii\helpers\Url::to(['auth/login']);?>">登录</a>
            <?php }else{ ?>
             <a href="">帮助</a>&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;<a href="<?= yii\helpers\Url::to(['auth/logout']);?>">登出</a>
            <?php } ?>
            </div>
        </div>
    </div>
    <!--header end-->
           <div class="w1200 clearFloat adconw">
        <div class="leftdiv floatLeft">
            <div class="ayhmimg ml20 mt30 mb30">
                <img src="<?= yii::getAlias('@web');?>/images/grtximg.png" alt="" class="grtximg"/> 您好，<?= $member['username'] ?>
            </div>
            <div class="adlist">
                <ul>
                    <li>
                        <span class="adlspan"><img src="<?= yii::getAlias('@web');?>/images/aicon1.png" alt="" class="aicon"/> 会员资料</span>
                        <div class="adlist2">
                            <ul>
                                <li class="<?php if(yii::$app->controller->action->id == 'info'){echo 'adlactive';}?>">
                                    <a href="<?= yii\helpers\Url::to(['member/info']);?>">基本资料</a>
                                </li>
                                <li class="<?php if(yii::$app->controller->action->id == 'openmember'){echo 'adlactive';}?>">
                                    <a href="<?= yii\helpers\Url::to(['member/openmember']);?>">开通会员</a>
                                </li>

                                <li class="<?php if(yii::$app->controller->action->id == 'notice'){echo 'adlactive';}?>">
                                    <a href="<?= yii\helpers\Url::to(['member/notice']);?>">系统通知</a>
                                </li>
                                <li>
                                    <a href="">我的收藏夹</a>
                                </li>
                            </ul>
                        </div>
                    </li>
					<li>
                        <span class="adlspan"><img src="<?= yii::getAlias('@web');?>/images/aicon2.png" alt="" class="aicon"/> 文章管理</span>
                        <div class="adlist2">
                            <ul>
							       <li class="<?php if(yii::$app->controller->action->id == 'bins'){echo 'adlactive';}?>">
                                    <a href="<?= yii\helpers\Url::to(['art/bins']);?>">回收站</a>
                                </li>
                                <li class="<?php if(yii::$app->controller->action->id == 'list'){echo 'adlactive';}?>">
                                    <a href="<?= yii\helpers\Url::to(['art/list']);?>">文章列表</a>
                                </li>
								    <li class="<?php if(yii::$app->controller->action->id == 'index'){echo 'adlactive';}?>">
                                    <a href="<?= yii\helpers\Url::to(['art/index']);?>">添加文章</a>
                                </li>
                                
                            </ul>
                        </div>
                    </li>
                    <li>
                        <span class="adlspan"><img src="<?= yii::getAlias('@web');?>/images/aicon2.png" alt="" class="aicon"/> 认证信息</span>
                        <div class="adlist2">
                            <ul>
                                <li class="<?php if(yii::$app->controller->action->id == 'nameauth'){echo 'adlactive';}?>">
                                    <a href="<?= yii\helpers\Url::to(['member/nameauth']);?>">实名认证</a>
                                </li>
                                <li class="<?php if(yii::$app->controller->action->id == 'authmange'){echo 'adlactive';}?>">
                                    <a href="<?= yii\helpers\Url::to(['member/authmange']);?>">认证资料管理</a>
                                </li>
                            </ul>
                        </div>
                    </li>
                    <li>
                        <span class="adlspan"><img src="<?= yii::getAlias('@web');?>/images/aicon3.png" alt="" class="aicon"/> 企业信息</span>
                        <div class="adlist2">
                            <ul>
                                <li  class="<?php if(yii::$app->controller->action->id == 'licence'){echo 'adlactive';}?>">
                                    <a href="<?= yii\helpers\Url::to(['member/licence']);?>">营业执照</a>
                                </li>
                                 <li class="<?php if(yii::$app->controller->action->id == 'busdetail'){echo 'adlactive';}?>">
                                    <a href="<?= yii\helpers\Url::to(['member/busdetail']);?>">企业资料</a>
                                </li>
                            </ul>
                        </div>
                    </li>
                    <li>
					       <span class="adlspan"><img src="<?= yii::getAlias('@web');?>/images/aicon5.png" alt="" class="aicon"/> 财务管理</span>
                                <div class="adlist2">
                                    <ul>
                                        <li class="<?php if(yii::$app->controller->action->id == 'orderlist'){echo 'adlactive';}?>">
                                       <a href="<?= yii\helpers\Url::to(['finance/orderlist']);?>">订单列表</a>
                                        </li>
                                        <li class="<?php if(yii::$app->controller->action->id == 'invoicelist'){echo 'adlactive';}?>">
                                            <a href="<?= yii\helpers\Url::to(['finance/invoicelist']);?>">发票列表</a>
                                        </li>
                                    </ul>
                    </li>
                    <li>
                        <span class="adlspan"><img src="<?= yii::getAlias('@web');?>/images/aicon4.png" alt="" class="aicon"/> 密码安全</span>
                        <div class="adlist2">
                            <ul>
                                <li>
                                    <a href="<?= yii\helpers\Url::to(['member/pwd']);?>">修改密码</a>
                                </li>
                            </ul>
                        </div>
                    </li>
                    <!--申请分会 zsn 20161116-->
                    <li>
                        <span class="adlspan"><img src="<?= yii::getAlias('@web');?>/images/aicon4.png" alt="" class="aicon"/> 申请分会</span>
                        <div class="adlist2">
                            <ul>
                                <li>
                                    <a href="<?= yii\helpers\Url::to(['member/apply_association']);?>">申请分会</a>
                                </li>
                                <li>
                                    <a href="<?= yii\helpers\Url::to(['member/print_application']);?>">打印申请表</a>
                                </li>
                            </ul>
                        </div>
                    </li>
					<li>
                        <span class="adlspan"><img src="<?= yii::getAlias('@web');?>/images/aicon4.png" alt="" class="aicon"/> 会议管理</span>
                        <div class="adlist2">
                            <ul>
                                <li>
                                    <a href="<?= yii\helpers\Url::to(['meetingenroll/list']);?>">已报名会议</a>
                                </li>
                            </ul>
                        </div>
                    </li>
                </ul>
            </div>
        </div>
        <div class="rightdiv floatLeft mt15 ">
           <?= $content ?>
        </div>
        <div class="aright floatRight mt15">
            <div class="arigthw">
            <?php 
               $notices =  Notice::find()->all();
            ?>
                <h3 class="grh3tit">系统通知</h3>
                <div class="argiwul">
                    <ul>
                    <?php foreach($notices as $key=>$list){ ?>
                        <li>
                            <a href="<?= yii\helpers\Url::to(['member/noticedetail','id'=>$list["id"]]);?>">
                                <?= $list['title'] ?>
                                <span><?php echo  date('Y-m-d',strtotime($list['time']));  ?></span>
                            </a>
                        </li>
                    <?php } ?>

                    </ul>
                </div>
            </div>
        </div>
        <script>
            $(function(){
                var b=$(".leftdiv").innerHeight()-15;
                $(".rightdiv").innerHeight(b);
                $(".aright").innerHeight(b)
            })
        </script>
    </div>
    <!--footer-->
    <div class="footer">
        <p>ICP备案编号：京ICP备10212988号  备案编号：京公网安备11010702001307    版权所有 北京万虎时代网络科技有限公司</p>
    </div>
    <!--footer end-->
</div>
<!--warrper end-->

<?php $this->endBody() ?>
</body>
        <?php if (isset($this->blocks['footer_scripts'])): ?>
        <?= $this->blocks['footer_scripts'] ?>
        <?php endif; ?>
</html>
<?php $this->endPage() ?>
